package com.qf.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 2019/12/7
 * Administrator
 * springboot1206
 * 面向对象面向君  不负代码不负卿
 */
@Configuration
public class InterceptorUtil  extends WebMvcConfigurerAdapter {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
          registry.addInterceptor(new InterceptorA()).addPathPatterns("/getusers");
        registry.addInterceptor(new InterceptorB()).addPathPatterns("/getusers");
    }
}
